
<!doctype html>
<html>
<head>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,initial-scale=1.0,user-scalable=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <title>邀请榜 - {php echo $this->title;}</title>
    <meta name="keywords" content="排行榜">
    <meta name="description" content="排行榜">
    <link rel="stylesheet" href="../addons/dashen_zaoqizhuanqian/css/idangerous.swiper.css?Hz2">
    <link rel="stylesheet" href="../addons/dashen_zaoqizhuanqian/css/animation.css?Hz2">
    <link rel="stylesheet" href="../addons/dashen_zaoqizhuanqian/css/style.css?Hz2">
    <script src="../addons/dashen_zaoqizhuanqian/js/jquery-1.9.1.min.js?Hz2" type="text/javascript"></script>
    <script src="../addons/dashen_zaoqizhuanqian/js/jquery.form.js?Hz2" type="text/javascript"></script>
    <script src="../addons/dashen_zaoqizhuanqian/js/rem.js?Hz2" type="text/javascript"></script>
    <script src="../addons/dashen_zaoqizhuanqian/js/fastclick.js?Hz2" type="text/javascript"></script>
    <script src="../addons/dashen_zaoqizhuanqian/js/jquery.similar.msgbox.js" type="text/javascript"></script>
    <script src="../addons/dashen_zaoqizhuanqian/js/idangerous.swiper.min.js" type="text/javascript"></script>
    <script src="../addons/dashen_zaoqizhuanqian/js/common.js" type="text/javascript"></script>
    <style>
        .wrap{width:6.4rem;}
        .Color,.FixedPay .FixedPayList ul li.Hover span.iconfont{color:#FF801A;}
        .BorderColor{border-color:#FF801A;}
        .Bg,#mb_btn_ok,.Ad .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet-active{background:#FF801A;color:#fff;}
        .FColor{color:#32a7ad}
        .FBg{background:#32a7ad;color:#fff;}
    </style>
    <script>
        var Config = new Object();
        Config.MsgBox_ok = '确定';
        Config.MsgBox_no = '取消';
    </script></head>
<body class="white">
<div class="wrap pb1">
    <div class="RanKingHead ToRanKingHead" style="position: relative">
        <div class="gohome" style="position: absolute;top: 25px"><a href="./index.php?i=<?php echo $uniacid?>&c=entry&do=index&m=dashen_zaoqizhuanqian"><img src="../addons/dashen_zaoqizhuanqian/images/h11.ico" /></a></div>
        <div class="Fighting">
            <div style="margin-left: 40%;margin-bottom: 50px;font-size: 20px">
             邀请列表:{$_W['fans']['uid']}
            </div>
        </div>
        <input id="acid" hidden value="{$acid}">
        <div style="position: relative" class="TodayStarLsit">
            <ul>
                <li DataUid="22914">
                    <div class="Face"> <img src="{php echo $zuijing['headimgurl']==''?'../addons/dashen_zaoqizhuanqian/images/moren.jpg':$zuijing['headimgurl']}"></div>
                    <div class="Label Label1">最近邀请</div>
                    <div class="Name">
                        {if $zuijing['nickname'] == ""}
                        暂无记录
                        {else}
                        {$zuijing['nickname']}
                        {/if}
                    </div>
                    <div class="Text">{php echo date('H:i',strtotime($zuijing['reg_time']))} 邀请</div>
                </li>
                <li DataUid="0">
                    <div class="Face"> <img src="{php echo $zuiduo1['headimgurl']==''?'../addons/dashen_zaoqizhuanqian/images/moren.jpg':$zuiduo1['headimgurl']}"> </div>
                    <div class="Label Label2">贡献之星</div>
                    <div class="Name">{$zuiduo1['nickname']}</div>
                    <div class="Text">{php echo $zuiduo['money']==''?'0': round($zuiduo['money'],2)}元</div>
                </li>
                <li DataUid="0">
                    <div class="Face"> <img src="{php echo $cishu1['headimgurl']==''?'../addons/dashen_zaoqizhuanqian/images/moren.jpg':$cishu1['headimgurl']}"> </div>
                    <div class="Label Label3">次数之星</div>
                    <div class="Name">{$cishu1['nickname']}</div>
                    <div class="Text">投资{php echo $cishu['cishu']==''?'0':$cishu['cishu']}次</div>
                </li>
            </ul>
            <div class="both"></div>
        </div>
    </div>
    <div class="RanKingTitle"><img src="../addons/dashen_zaoqizhuanqian/images/jb.png"><span>邀请列表 </span></div>
    <div class="RanKingNav">
        <ul>
            <li class="Hover" DataValue="lb">邀请列表</li>
            <li DataValue="money">好友分润</li>
            <li DataValue="mx">分润明细</li>
        </ul>
        <div class="both"></div>
    </div>
    <div class="RanKingList">
        <ul>
        </ul>
        <div class="both"></div>
    </div>
    <div class="Load"></div>
    <script>
        $(aa());
        function aa(){
            var Value = 'lb';
            var uniacid=$('#acid').val();

            $.ajax({
                url: './index.php?i='+uniacid+'&c=entry&do=Yqlb&m=dashen_zaoqizhuanqian&value='+Value,
                type: 'post',
                beforeSend:function(XMLHttpRequest){
                    $('.fixed_load').show();
                },
                success:function(Results){
                   var data = $.parseJSON(Results);
                    var Html = '';
                    $.each(data,function (k,v) {
                        Html += '<li> <div class="Face"><img src="'+v.headimgurl+'"></div> <span class="Name">'+v.nickname+'</span> <span class="Money"><em>'+v.reg_time+'</em></span> </li>';
                    });
                    $('.RanKingList ul').html(Html);
                },
                error:function(XMLHttpRequest){
                    $('.fixed_load').hide();
                    $.MsgBox.Alert('消息',"请求失败，错误状态为："+XMLHttpRequest.status);
                }
            });
        };
        $(".RanKingNav ul li").click(
            function () {
                $('.RanKingList ul').empty();
                var Value = $(this).attr('DataValue');
                var uniacid=$('#acid').val();
                $(this).addClass('Hover').siblings().removeClass('Hover');
                if(Value=='lb'){
                    aa();return false;
                }
                $.ajax({
                    url: './index.php?i='+uniacid+'&c=entry&do=Yqlb&m=dashen_zaoqizhuanqian&value='+Value,
                    type: 'post',
                    beforeSend:function(XMLHttpRequest){
                        $('.fixed_load').show();
                    },
                    success:function(Results){
                        //alert(Results);
                        $('.Load').html('');
                        $('.RanKingList ul').html('');
                        $('.fixed_load').hide();
                        var Html = '';
                        var date='';

                        var data = $.parseJSON(Results);
                        $.each(data,function (k,v) {
                            if(v.date != null){
                                date=v.date;
                            }
                            Html += '<li style="position: relative"> <div class="Face"><img src="'+v.user.headimgurl+'"></div> <span class="Name">'+v.user.nickname+'</span> <span style="position: absolute;left: 55%" class="Name">'+date+'</span> <span class="Money"><em>'+v.money+'</em></span> </li>';
                        });
                        $('.RanKingList ul').html(Html);
                    },
                    error:function(XMLHttpRequest){
                        $('.fixed_load').hide();
                        $.MsgBox.Alert('消息',"请求失败，错误状态为："+XMLHttpRequest.status);
                    }
                });
            }
        )
    </script>


</div>
{if $blist !=null}
    {template buttom}
{/if}
</body>
</html>
